<?php
/**
 * 
 */

use app\model\PayRecord;
use app\model\Applet;

return [
    // 对于数据库中会员分类主键ID
    'members' => 8,
    // 小程序
    'app_id' => 'wxaf012747788e958d', // 小程序APPID
    'secret' => '4939bcdc6d1f9b2cbb631e93c40418e5', // 小程序secret
    // 商户
    'mch_id' => 1659283366,
    'merchants_secret_key' => '6123d59f8fc0e51d5989080e313b0a33', // 商户秘钥

    // 服务器ip
    'ip' => '101.132.168.78',

    // 比翼鸟剧场
    'wechat_pay_1' => [
        'mch_id' => '1659283366',
        'apiv2_mch_key' => '8e491ec1f994e8d8fb9696154ae03229',
        'apiv3_mch_key' => '6123d59f8fc0e51d5989080e313b0a33',
        'serial_no' => '1B7478C26FA70539A427CDD074AAEBAEAD48C328'
    ],
    // 比翼鸟网络科技
    'wechat_pay_2' => [
        'mch_id' => '1651774564',
        'apiv2_mch_key' => '',
        'apiv3_mch_key' => '6123d59f8fc0e51d5989080e313b0a33',
        'serial_no' => '4D42DEC35A84B319D5B16321C0930AB0990659BE'
    ],
    // 比翼鸟剧场
    'wechat_pay_3' => [
        'mch_id' => '1659485876',
        'apiv2_mch_key' => '2023byn269888888888sybynwlkjyxgs',
        'apiv3_mch_key' => '6123d59f8fc0e51d5989080e313b0a33',
        'serial_no' => '24112352B4CE79DA5B86B0ADD8A9C4F65994BD82'
    ],

    'admin_id' => [
        2
    ],
    // 后台角色
    'admin_rule_ids' => [1],        // 管理员角色
    'copyright_party_rule_id' => 2, // 版权方角色
    'co_operative_rule_id' => 3,    // 合作公司角色

    // cps总帐号
    'cps_user_name' => 'cps总帐号',
    'cps_user_id' => '13',

    'type' => true,
    'sign_book_currency' => 10,
    // 用于测试版本
    'test' => [
        12, 13, 14, 15, 16, 17, 18, 19, 20
    ],
    'book_currency_number' => [
        1500, 200, 2400, 3600, 7500, 15000, 3000, 500
    ],

    // 平台类型
    'platform_type' => [
        ['type' => 1, 'name' => '微信短剧'],
        // ['type' => 2, 'name' => '抖音小程序'],
        // ['type' => 3, 'name' => '快应用'],
    ],
    // 展示对象
    'display_object' => [
        ['type' => 1, 'name' => '全部用户'],
        ['type' => 2, 'name' => '已充值用户'],
        ['type' => 3, 'name' => '未充值用户'],
    ],

    // 充值类型
    'recharge_type_1' => [
        ['id' => 1, 'name' => '普通充值'],
        ['id' => 2, 'name' => '年卡会员'],
        ['id' => 3, 'name' => '半年会员'],
        ['id' => 4, 'name' => '季卡会员'],
        ['id' => 5, 'name' => '60天会员'],
        ['id' => 6, 'name' => '30天会员'],
        ['id' => 7, 'name' => '10天会员'],
        ['id' => 8, 'name' => '7天会员'],
        ['id' => 11, 'name' => '3天会员'],
        ['id' => 15, 'name' => '1天会员'],
        ['id' => 12, 'name' => '解锁全集'],
        ['id' => 13, 'name' => '活动充值']
    ],
    'recharge_type_2' => [
        ['id' => 1, 'name' => '普通充值'],
        ['id' => 2, 'name' => '年卡会员'],
        ['id' => 3, 'name' => '半年会员'],
        ['id' => 4, 'name' => '季卡会员'],
        ['id' => 5, 'name' => '60天会员'],
        ['id' => 6, 'name' => '30天会员'],
        ['id' => 7, 'name' => '10天会员'],
        ['id' => 8, 'name' => '7天会员'],
        ['id' => 9, 'name' => '签到'],
        ['id' => 10, 'name' => '分享'],
        ['id' => 11, 'name' => '3天会员'],
        ['id' => 12, 'name' => '解锁全集'],
        ['id' => 13, 'name' => '活动充值'],
        ['id' => 14, 'name' => '广告奖励'],
        ['id' => 15, 'name' => '1天会员']
    ],

    // 公共回传配置
    'public_echo_configuration' => [
        'type' => 0, // 回传方式 0付费 1有效获客
        'echo_initial_charge_type' => 0, // 回传首充类型 0回传用户当天首充 1回传用户24小时内首充
    ],
    // 投放媒体
    'launch_media' => [
        ['id' => 1, 'name' => '抖音'],
        ['id' => 2, 'name' => '快手'],
        ['id' => 3, 'name' => '百度'],
        ['id' => 4, 'name' => '腾讯'],
        ['id' => 5, 'name' => '公众号H5'],
        ['id' => 6, 'name' => '短信H5']
    ],

    // 公众号回复跳转小程序地址
    'reply_link_jump_url' => [
        [
            'name' => '小程序首页',
            'value' => '/pages/index/index',
        ],
        [
            'name' => '个人中心',
            'value' => '/pages/my/my',
        ],
        [
            'name' => '短剧',
            'value' => '/pages/index/index?source=link',
        ],
        [
            'name' => '热门排行',
            'value' => '/pages/listpage/listpage?type=1',
        ],
        [
            'name' => '最近观看',
            'value' => '/pages/watching/watching',
        ],
        [
            'name' => '充值',
            'value' => '/pages/recharge/recharge',
        ],
        [
            'name'=>'H5版首页',
            'value'=>'/pages/index/index'
        ],
        [
            'name'=>'投放链接',
            'value'=>'link'
        ]
    ],
    'watch_video_link_jump_url' => '/pages/index/index?source=link', // 小程序观看短剧路径
    'sign_link_jump_url' => '/pages/watching/watching',                // 小程序签到页面路径
    'hot_short_play_link_jump_url' => '/pages/listpage/listpage?type=1', // 小程序视频排行路径
    'applet_home_jump_url' => '/pages/index/index',                  // 小程序首页

    // 链接跳转地址
    'link_jump_applet_url' => [
        [
            'name' => '微信小程序',
            'value' => '/pages/index/index',
        ],
        [
            'name' => '抖音小程序',
            'value' => '/pages/index/index',
        ],
        [
            'name' => '快手小程序',
            'value' => '/pages/index/index',
        ]
    ],

    // 小程序类型
    'applet_type' => [
        ['id' => 1, 'name' => '微信小程序'],
        ['id' => 2, 'name' => '抖音小程序'],
        ['id' => 3, 'name' => '快手小程序']
    ],

    // 播放完毕获取其他短剧的方案
    'get_other_video_programme' => false,
    //微信支付base api
    'wechat_pay_base_url' => 'https://api.weixin.qq.com',
    //微信小程序支付消息回调配置
    'wechat_applet_pay_back_token' => 'byn',//Token令牌
    'wechat_applet_pay_back_encoding_aes_key' => 'eYxtSYGUSrCw9CFDFawLe6wb18k6Cu1uMsPDOeSQ2We',//EncodingAESKey
    'activity_pay_type' => 13,
    //微信支付渠道展示比率
    'wechat_pay_random_probability' => [
        5 => env('wechat_pay_random_probability.zhangzhongfu', 0),//掌中付第三方
        13 => env('wechat_pay_random_probability.mihua_jump_liuyi', 0.8),//米花小程序跳转-比翼鸟主体
        14 => env('wechat_pay_random_probability.mihua_jump_dalianquman', 0.1),//米花小程序跳转-大连趣漫主体
        15 => env('wechat_pay_random_probability.applet_virtual_payment', 0.1),//小程序虚拟支付
    ],
    //用户支付黑名单
    'user_payment_blacklist' => env('common_config.user_payment_blacklist', ''),
    //米花跳转url
    'mihua_wxpay_referer' => 'http://hunanlywh.com',
    // 自投小程序appid白名单
    'my_appid' => [
       'tt716807d5ee55bba601','wx9e795df72358378b','ks686235996784773385','wxa1e98251ac7fd19a',
       'wxc446d3321597c21b','wx94839f9b4a366a11','wxaaef1521527a1617','wx113faf6d545008a3','ks653021947225868652',
       'wxd14830d3714db99d','wx653ce03e88a70aeb','wx69eb2036fa20bf9f','wxfe45f643d568872d','wx1ea996aeb6ef3452','wx9e795df72358378b',
        'wx94839f9b4a366a11','wxaaef1521527a1617','wx113faf6d545008a3','wxc446d3321597c21b','wx55be749e6a7d4575','wxb8ce65b435d77af0',
        'wx425b0c0054bc0789','wx2923011511ec6685','wx1ea996aeb6ef3452','wxd14830d3714db99d','wx653ce03e88a70aeb','wx69eb2036fa20bf9f',
        'wx1c551631b7ed4847','wxfe45f643d568872d',
        'tt8772f1cf184f767a01','ttb11cc7a12e214b3001','tt8b39fd84140ac0bc01','tt6bcb1d76f4f823b001','ttbb30cd8d2403f34801',
        'ttab3fdd82340ce0b801','tt67c6117bf8fb962801','tt2b245d99b41760ab01','tt0b2e7d93941d40a301'
    ],//雪花好剧,花椒短剧,瓜子好剧,比翼鸟短剧---抖小.树袋熊微好剧，漫漫微剧场，海带好剧，岳麓剧场,比翼鸟微短剧----抖小,橙子

    //自投company_id
    'self_company_id'=>['3','4','5','42','45'],

    //微信支付主题商户配置
    'wechat_pay_config' => [    //具体1,2,3代表内容请查看applet模型中公司主体常量
        //底下配置为公司主题下支付商户配置
        Applet::COMPANY_ENTITY_LIUYI => [  //微信官方-比翼鸟公司主体
            //比翼鸟剧场
            PayRecord::PAY_MERCHANT_LIUYIJUCHANG => [
                'mch_id' => '1659283366',
                'apiv2_mch_key' => '8e491ec1f994e8d8fb9696154ae03229',
                'apiv3_mch_key' => '6123d59f8fc0e51d5989080e313b0a33',
                'serial_no' => '1B7478C26FA70539A427CDD074AAEBAEAD48C328'
            ],
            //比翼鸟网络科技
            PayRecord::PAY_MERCHANT_LIUYIWENHUA => [
                'mch_id' => '1651774564',
                'apiv2_mch_key' => '',
                'apiv3_mch_key' => '6123d59f8fc0e51d5989080e313b0a33',
                'serial_no' => '4D42DEC35A84B319D5B16321C0930AB0990659BE'
            ],
            //比翼鸟剧场
            PayRecord::PAY_MERCHANT_CHENGZIJUCHANG => [
                'mch_id' => '1659485876',
                'apiv2_mch_key' => '2023byn269888888888sybynwlkjyxgs',
                'apiv3_mch_key' => '6123d59f8fc0e51d5989080e313b0a33',
                'serial_no' => '24112352B4CE79DA5B86B0ADD8A9C4F65994BD82'
            ]
        ],
        Applet::COMPANY_ENTITY_THREE => [
            PayRecord::PAY_MERCHANT_NNYY_1 => [
                'mch_id' => '1659289129',
                'apiv2_mch_key' => '',
                'apiv3_mch_key' => '6123d59f8fc0e51d5989080e313b0a33',
                'serial_no' => '253AF21D978A5646E5D59C3A2173B0507EF45D5A'
            ],
            PayRecord::PAY_MERCHANT_NNYY_2 => [
                'mch_id' => '1655670486',
                'apiv2_mch_key' => '',
                'apiv3_mch_key' => '6123d59f8fc0e51d5989080e313b0a33',
                'serial_no' => '4028731C985AE30F0C0CB99EEAD5EEE6FA2ABEF6'
            ]
        ]
    ]
];